<?php if (!defined('THINK_PATH')) exit();?><!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html>
<title><?php echo ($name); ?></title>
<script src="__APP__/statics/jquery-1.9.1.min.js" type="text/javascript"></script>
<link rel="stylesheet" type="text/css" href="__APP__/statics/css/jNotify.jquery.css" />
<script type="text/javascript" src="__APP__/statics/jNotify.jquery.js"></script>
<style>
 body{font-family:"微软雅黑";font-size:12px;color:#666666;background-color:#F9F9F6}
 *{margin: 0;} 
 a{text-decoration:none}
 img{border:0px}
.cat{background-color:#F9F9F6;margin-left:10px;z-index:0;}
.cat_list:hover{background-color:#fff;}
.title{background:url("__APP__/statics/tbg.gif");font-weight:bold}

#save{text-align:center;border:0;width:100%;height:40px;background-color:#fff;position:fixed;left:0px;bottom:0px;z-index:999;border:1px solid #DFDFDF;background-color:#DFDFDF;padding:5px;height:20px}
</style>

<div style="width:500px;margin:0 auto;margin-top:20px;text-align:center">
<div class="load" style="font-size:20pt;font-weight:bold;border:0px;color:#666666">
<h1>新订单提醒</h1>
<div style="font-size:14px;color:#FF0000">此处只监控新订单，要处理请选择未处理订单</div>
<span style="font-size:14px;color:#FF0000" class="loading"><img src="__APP__/statics/sen2.gif"></span>
</div>
<div class="admin">
	<input type="radio" name="admin" value="on" checked="checked" />扫描中
	<input type="radio" name="admin" value="off"/>停止
</div>

<div style="font-size:14px;border:1px solid #dedede;">
<?php if(is_array($order)): $i = 0; $__LIST__ = $order;if( count($__LIST__)==0 ) : echo "" ;else: foreach($__LIST__ as $key=>$order): $mod = ($i % 2 );++$i;?>【<?php echo ($i); ?>】<?php echo ($order["order_id"]); ?>————<?php echo (date("Y-m-d H:i:s",$order["create_time"])); ?></br><?php endforeach; endif; else: echo "" ;endif; ?>
</div>
</div>

<script>
function getnums() {
 window.location.reload()
}   
$(document).ready(function(){   
var load=setInterval(getnums, 60000); 

 $("[name=admin]").click(function(){
    var sta=$(this).val();
	if(sta=='off'){
	   clearInterval(load);
	   $(".loading").html("已停止扫描");
	}else{
	   window.location.reload();
	}
})


});  

</script>

</body>
</html>